#!/user/bin/python3
# @Author:  LSY
# @Date:    2020/9/16

from app.models.bo.base_bo import BaseBO


class HanFanInputParamBO(BaseBO):
    CURRENT_HF = None
    CG_LT_GL_GL04_Yuanranliao_Ore_V2O5 = None
    CG_LT_GL_GL04_CWPRE = None
    CG_LT_GL_GL04_LFLL = None
    CG_LT_GL_GL04_RFYL02 = None
    CG_LT_GL_GL04_RFWD = None
    CG_LT_GL_GL04_LDYL = None
    CG_LT_GL_GL04_FSBZ = None
    CG_LT_GL_GL04_FSSJ = None
    CG_LT_GL_GL04_GFDNKG = None
    CG_LT_GL_GL04_FYLL = None
    CG_LT_GL_GL04_JSWD = None
    CG_LT_GL_GL04_LDWD01 = None
    CG_LT_GL_GL04_LDWD02 = None
    CG_LT_GL_GL04_LDWD03 = None
    CG_LT_GL_GL04_LDWD04 = None
    CG_LT_GL_GL04_FZWD = None
    CG_LT_GL_GL04_GLRSZLL = None
    CG_LT_GL_GL04_COZXFX = None
    CG_LT_GL_GL04_CO2ZXFX = None
    # CG_LT_GL_GL04_SBYC01 = None
    CG_LT_GL_GL04_SBYC02 = None
    CG_LT_GL_GL04_SBYC03 = None
    CG_LT_GL_GL04_SBYC04 = None
    CG_LT_GL_GL04_XBYC01 = None
    CG_LT_GL_GL04_XBYC02 = None
    CG_LT_GL_GL04_XBYC03 = None
    CG_LT_GL_GL04_XBYC04 = None
    CG_LT_GL_GL04_TQXZS = None
    CG_LT_GL_GL04_RFH = None
    CG_LT_GL_GL04_DW = None
    CG_LT_GL_GL04_XBYC = None
    CG_LT_GL_GL04_SBYC = None
    CG_LT_GL_GL04_YC = None
    CG_LT_GL_GL04_MQLYL = None
    CG_LT_GL_GL04_ZXQL = None
    CG_LT_GL_GL04_SBYCZB = None
    CG_LT_GL_GL04_XBYCZB = None
    CG_LT_GL_GL04_FCoalR = None
    CG_LT_GL_GL04_FCoalRate = None
    CG_LT_GL_GL04_FCokeRate = None

    member_mapping_dict = {
        "CURRENT_HF": "铁水含矾量",
        "CG_LT_GL_GL04_Yuanranliao_Ore_V2O5": "入炉钒含量",
        "CG_LT_GL_GL04_CWPRE": "冷风压力",
        "CG_LT_GL_GL04_LFLL": "冷风流量",
        "CG_LT_GL_GL04_RFYL02": "热风压力02",
        "CG_LT_GL_GL04_RFWD": "热风温度",
        "CG_LT_GL_GL04_LDYL": "炉顶压力",
        "CG_LT_GL_GL04_FSBZ": "标准风速",
        "CG_LT_GL_GL04_FSSJ": "实际风速",
        "CG_LT_GL_GL04_GFDNKG": "鼓风动能KG",
        "CG_LT_GL_GL04_FYLL": "富氧流量",
        "CG_LT_GL_GL04_JSWD": "进水温度",
        "CG_LT_GL_GL04_LDWD01": "1#炉顶温度",
        "CG_LT_GL_GL04_LDWD02": "2#炉顶温度",
        "CG_LT_GL_GL04_LDWD03": "3#炉顶温度",
        "CG_LT_GL_GL04_LDWD04": "4#炉顶温度",
        "CG_LT_GL_GL04_FZWD": "阀座温度",
        "CG_LT_GL_GL04_GLRSZLL": "高炉软水总流量",
        "CG_LT_GL_GL04_COZXFX": "煤气在线分析",
        "CG_LT_GL_GL04_CO2ZXFX": "CO2在线分析",
        # "CG_LT_GL_GL04_SBYC01": "1#上部压差",
        "CG_LT_GL_GL04_SBYC02": "2#上部压差",
        "CG_LT_GL_GL04_SBYC03": "3#上部压差",
        "CG_LT_GL_GL04_SBYC04": "4#上部压差",
        "CG_LT_GL_GL04_XBYC01": "1#下部压差",
        "CG_LT_GL_GL04_XBYC02": "2#下部压差",
        "CG_LT_GL_GL04_XBYC03": "3#下部压差",
        "CG_LT_GL_GL04_XBYC04": "4#下部压差",
        "CG_LT_GL_GL04_TQXZS": "透气性指数",
        "CG_LT_GL_GL04_RFH": "热负荷",
        "CG_LT_GL_GL04_DW": "顶温",
        "CG_LT_GL_GL04_XBYC": "下部压差",
        "CG_LT_GL_GL04_SBYC": "上部压差",
        "CG_LT_GL_GL04_YC": "压差",
        "CG_LT_GL_GL04_MQLYL": "煤气利用率",
        "CG_LT_GL_GL04_ZXQL": "T阀座温度/T顶温",
        "CG_LT_GL_GL04_SBYCZB": "上部压差占比",
        "CG_LT_GL_GL04_XBYCZB": "下部压差占比",
        "CG_LT_GL_GL04_FCoalR": "实际煤量",
        "CG_LT_GL_GL04_FCokeRate": "焦比",
        "CG_LT_GL_GL04_FCoalRate": "煤比",

    }

    exclude_list = ['member_mapping_dict',
                    'exposed_param_list',
                    'exposed_param_dict',
                    'exclude_list']

    @classmethod
    def exposed_param_list(cls):
        exclude_list = HanFanInputParamBO.exclude_list

        return [i for i in cls.__dict__.keys()
                if i[:1] != '_' and i not in exclude_list]

    @classmethod
    def exposed_param_dict(cls):
        exclude_list = HanFanInputParamBO.exclude_list

        return {k: v for k, v in cls.member_mapping_dict.items()
                if k[:1] != '_' and k not in exclude_list}